package com.lagou.code.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name="lagou-service-email")
public interface EmailService {

    @RequestMapping(value = "/api/email/{email}/{code}",method = RequestMethod.GET)
    public boolean sendMail(@PathVariable(name = "email") String email,@PathVariable(name = "code") String code);
}
